package com.wuwei.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description: PaymentController <br>
 * @date: 2021/2/19 15:33 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@RestController
public class PaymentController {

    @Value("${server.port}")
    private Integer port;

    @GetMapping("/payment/nacos/{id}")
    public String getPayment(@PathVariable Integer id){
        return "nacos register" + " port: " + port + " id: " + id;
    }
}
